package com.ruoyi.kiku.service.impl;

import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.kiku.domain.KikuWeiboTrumpetDetail;
import com.ruoyi.kiku.mapper.KikuWeiboTrumpetDetailMapper;
import com.ruoyi.kiku.service.IKikuWeiboTrumpetDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 微博小号详情Service业务层处理
 *
 * @author TT
 * @date 2025-03-04
 */
@Service
public class KikuWeiboTrumpetDetailServiceImpl implements IKikuWeiboTrumpetDetailService
{
    @Autowired
    private KikuWeiboTrumpetDetailMapper kikuWeiboTrumpetDetailMapper;

    /**
     * 查询微博小号详情
     *
     * @param id 微博小号详情主键
     * @return 微博小号详情
     */
    @Override
    public KikuWeiboTrumpetDetail selectKikuWeiboTrumpetDetailById(Long id)
    {
        return kikuWeiboTrumpetDetailMapper.selectKikuWeiboTrumpetDetailById(id);
    }

    /**
     * 查询微博小号详情列表
     *
     * @param kikuWeiboTrumpetDetail 微博小号详情
     * @return 微博小号详情
     */
    @Override
    public List<KikuWeiboTrumpetDetail> selectKikuWeiboTrumpetDetailList(KikuWeiboTrumpetDetail kikuWeiboTrumpetDetail)
    {
        return kikuWeiboTrumpetDetailMapper.selectKikuWeiboTrumpetDetailList(kikuWeiboTrumpetDetail);
    }

    /**
     * 新增微博小号详情
     *
     * @param kikuWeiboTrumpetDetail 微博小号详情
     * @return 结果
     */
    @Override
    public int insertKikuWeiboTrumpetDetail(KikuWeiboTrumpetDetail kikuWeiboTrumpetDetail)
    {
        kikuWeiboTrumpetDetail.setCreateTime(DateUtils.getNowDate());
        return kikuWeiboTrumpetDetailMapper.insertKikuWeiboTrumpetDetail(kikuWeiboTrumpetDetail);
    }

    /**
     * 修改微博小号详情
     *
     * @param kikuWeiboTrumpetDetail 微博小号详情
     * @return 结果
     */
    @Override
    public int updateKikuWeiboTrumpetDetail(KikuWeiboTrumpetDetail kikuWeiboTrumpetDetail)
    {
        kikuWeiboTrumpetDetail.setUpdateTime(DateUtils.getNowDate());
        return kikuWeiboTrumpetDetailMapper.updateKikuWeiboTrumpetDetail(kikuWeiboTrumpetDetail);
    }

    /**
     * 批量删除微博小号详情
     *
     * @param ids 需要删除的微博小号详情主键
     * @return 结果
     */
    @Override
    public int deleteKikuWeiboTrumpetDetailByIds(Long[] ids)
    {
        return kikuWeiboTrumpetDetailMapper.deleteKikuWeiboTrumpetDetailByIds(ids);
    }

    /**
     * 删除微博小号详情信息
     *
     * @param id 微博小号详情主键
     * @return 结果
     */
    @Override
    public int deleteKikuWeiboTrumpetDetailById(Long id)
    {
        return kikuWeiboTrumpetDetailMapper.deleteKikuWeiboTrumpetDetailById(id);
    }
}
